{% extends 'base.html' %}
{% block content %}

{% if user.is_authenticated %}
    {% if not thread.locked %}
    <H1> New forum post </H1>
    <form action="" method="post">
    {% csrf_token %}
    Post text:<br>
    {{ forumpostform.body}}
    <br>
    <input type="submit" value="Submit" />
    </form>
    {% else %}
    Thread is locked
    {% endif %}
{% else %}
    You shouldn't be here
{% endif %}
{% endblock %}